<template>
  <Header />
  <router-view />
  <Footer v-show="route.meta.showFooter" />
</template>

<script lang="ts" setup>
import Header from '@/components/header/index.vue'
import Footer from '@/components/footer/index.vue'
import {useRoute} from "vue-router";
import {onMounted} from "vue";
import useCategoryStore from "@/store/category";

const route = useRoute()
const categoryStore = useCategoryStore()

onMounted(async () => {
  await categoryStore.loadList()
})
</script>

<style>
</style>
